initialize();

function initialize() {
	tabCheck();
	swiper1();
	swiper2();
}

function tabCheck() {
	$(".youshi_content_item").mouseenter(function() {
		$(".youshi_content_item").removeClass("active");
		$(this).addClass("active");
	})
}

function swiper1() {
	var appendNumber = 8;
	var prependNumber = 1;
	var swiper = new Swiper('.swiper-container1', {
		nextButton: '.swiper-button-next',
		prevButton: '.swiper-button-prev',
		slidesPerView: 3,
		//		centeredSlides: true,
		loop: true,
		autoplay: 3000,
	});
}

function swiper2() {
	//	var appendNumber = 3;
	//	var prependNumber = 1;
	var swiper = new Swiper('.swiper-container2', {
		pagination: '.swiper-pagination',
		slidesPerView: 3,
		//		centeredSlides: true,
		paginationClickable: true,
		loop: true,
		autoplay: 3000,
	});
}